package com.itce.arco.practicenote.day02.practice3;

public abstract class Car {

    private String type; //类型
    private String brand; //品牌
    private String color; //颜色
    private double price; //价格

    public Car() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Car(String type, String brand, String color, double price) {
        this.type = type;
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    public abstract void run();
}
